Page({

    data:{
        StorageText: ''
    },

    saveStorage(){
        wx.setStorage({
            key: 'demo',
            data: '测试数据',
            success: (result)=>{
                this.setData({
                    StorageText: '测试数据'
                })
            },
            fail: ()=>{},
            complete: ()=>{}
        });
    },

    clearStorage(){
        wx.clearStorage();
    }
})